<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>EditArea</title>
	<style>
	html,body { border:0; margin:0; padding:0; height:100%; width: 100%; overflow:hidden; }
	</style>
	<script>
	var url = window.location.href;
	var file = url.split('?file=')[1];
	var ftype = file.split('.').pop().toLowerCase();
	var allowed = 
	{
		'basic':'basic',
		'c': 'c',
		'h': 'cpp',
		'cpp': 'cpp',
		'css': 'css',
		'html': 'html',
		'java': 'java',
		'coldfusion': 'coldfusion',
		'js': 'js',
		'pas': 'pas',
		'perl': 'perl',
		'php': 'php',
		'inc': 'php',
		'python': 'python',
		'py': 'python',
		'rb': 'ruby',
		'ruby': 'ruby',
		'sql': 'sql',
		'tsql': 'tsql',
		'vb': 'vb',
		'xml': 'xml'
	};
	if (!allowed[ftype]) ftype = undefined;
	</script>
	<script language="Javascript" type="text/javascript" src="../../lib/editarea/edit_area_full.js"></script>
	<script language="Javascript" type="text/javascript">
		editAreaLoader.init({
			id: "content"	
			,start_highlight: false	
			,word_wrap: true
			,language: "zh"
			,syntax: ftype
		});
	</script>
</head>
<body>
<textarea id="content" style="width:100%;height:100%;"></textarea>
<script>
parent.$.post(parent.dms.url.getFile,{ file: file },function(s)
{
	editAreaLoader.setValue('content',s);
},'text');
</script>
</body>
</html>
		
